from django.apps import AppConfig


class ApiConfig(AppConfig):
    name = 'api'

    # 启动时加载文件
    def ready(self):
        super().ready()
        from django.utils.module_loading import autodiscover_modules
        autodiscover_modules('reptile')
